/**
 * @date 5:18:47 PM
 * MessageAPPServiceImpl.java
 * Administrator
 * TODO
 */
package com.qs.education.service.impl;
import org.springframework.stereotype.Service;
import com.qs.education.bean.api.PageBean;
import com.qs.education.bean.api.ResponseBean;
import com.qs.education.bean.service.BaseService;
import com.qs.education.service.IMessageAPPService;
/**
 * @class MessageAPPServiceImpl	
 * @author Warren
 * @description
 * @date Nov 9, 2018 
 */
@Service
public class MessageAPPServiceImpl extends BaseService implements IMessageAPPService{

	/**
	 * @author Warren
	 * @param studentId
	 * @param currentPage
	 * @param pageSize
	 * @return PageBean
	 * @description 根据页码、页数量、id查询学生的消息列表
	 * @date Nov 21, 2018
	 */
	@Override
	public PageBean getALLMessageByStudentId(Long studentId,int currentPage,int pageSize) {
		PageBean pageBean = apiCaller.getALLMessageByStudentId(studentId, currentPage, pageSize);
		return pageBean;
	}

	/** 
	 * @author Warren
	 * @param teacherId
	 * @param currentPage
	 * @param pageSize
	 * @return PageBean
	 * @description 根据页码、页数量、id查询教师的消息列表
	 * @date Nov 21, 2018
	 */
	@Override
	public PageBean getALLMessageByTeacherId(Long teacherId,int currentPage,int pageSize) {
		PageBean pageBean = apiCaller.getALLMessageByTeacherId(teacherId, currentPage, pageSize);
		return pageBean;
	}

	/**
	 * @author Warren
	 * @return ResponseBean
	 * @description 根据id删除消息
	 * @date Nov 20, 2018
	 */
	@Override
	public ResponseBean deleteMessageById(Long id) {
		ResponseBean responseBean = apiCaller.deleteMessageById(id);
		return responseBean;
	}

}
